package com.cloud.logger.zchain.zchainserver.com.interfilter;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


public class WebAppConfig extends WebMvcConfigurerAdapter{

    /**
     * 配置拦截器
     * @author lance
     * @param registry
     */
    public void addInterceptors(InterceptorRegistry registry) {

        registry.addInterceptor(new UserSecurityInterceptor()).addPathPatterns("/user1/index/**");
    }



}
